import javax.script.ScriptEngineManager;

/**
 * @author: liyf
 * @create: 2025-01-04 21:46
 **/
public class ListScriptEngines {

    public static void main(String[] args) {
        ScriptEngineManager manager = new ScriptEngineManager();
        manager.getEngineFactories().forEach(factory -> {
            System.out.println("Engine Name: " + factory.getEngineName());
            System.out.println("Language: " + factory.getLanguageName());
            System.out.println("Version: " + factory.getLanguageVersion());
            System.out.println("Mime Types: " + factory.getMimeTypes());
            System.out.println("------");
        });
    }
}
